package com.guqj.basis.aop.spring;

import java.lang.reflect.Method;
import java.util.Arrays;

import org.springframework.aop.MethodBeforeAdvice;

public class GreetingBeforeAdvice implements MethodBeforeAdvice {

	@Override
	public void before(Method method, Object[] args, Object target) throws Throwable {
		System.out.println(">>>>>>>>>>>>>>>>Before Start>>>>>>>>>>>>>>>>>>>>");  
        System.out.println("Method Name: " + method.getName());  
        System.out.println("args:" + Arrays.toString(args));  
        System.out.println("Target : " + target.getClass().getName());  
        System.out.println("<<<<<<<<<<<<<<<<<Before End<<<<<<<<<<<<<<<<<<<<<<");
	}

}
